#include("../_layout.html")

#@layout()

#define content()
<div class="club-container container">
	<div>
	#wMPostCategory()
	#for(category: clubCategory.list)	
		<span><a href="#(T_PATH)/post/category/#(category.id)">#(category.postClassName)</a></span>
	#end
	#end
	</div>
	
	#wMostPage(pageSize=20)
	#for(post : clubPage.list)
	<div class="card club-card">
	    <div class="row align-items-center h-full">
	        <div class="col-1 col-md-1 club-view">
	            <span>#(post.view_count ?? 0)</span>
	            <p>浏览</p>
	        </div>
	        <div class="col-1 col-md-1 club-answer">
	            <span>#(post.comment_count ?? 0)</span>
	            <p>回答</p>
	        </div>
	
	        <div class="col-10 col-md-10">
	            <div class="card-block">
	                <p>
	                    <small>#(post.user.nickname ??)
	                        #userMembers(post.user.id)
	                        #for(member : members)
	                        <a href="#(member.type.link ??)" class="label-vip2">
	                            <img src="#(member.type.icon ??)" alt="#(member.type.title ??)">
	                        </a>
	                        #end
	                        #end
	                        / <span class="elegantDate" data-elegant-date="#date(post.created,'yyyy-MM-dd HH:mm:ss')"></span>发布</small>
	                </p>
	                <h4 class="card-title"><a href="#(post.url ??)" style="color: #(post.title_color ??)"> #(post.title ??) </a>
	                    <a href="#(post.category.url ??)" class="club-label">#(post.category.title ??)</a>
	                </h4>
	            </div>
	        </div>
	    </div>
	</div>
	#end
	#end
</div>
#end